<template>
  <div>
    <div class="log_container" ref="pingLogContainerRef">
        <div v-for="(item,index) in pingFormData.pingResult" :key="item">
          <div class="log-item">
            <span class="log-index">[{{index+1}}]</span>
            <span class="log-content">{{item}}</span>
          </div>
        </div>
      </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'WebSocketTest',
})
</script>
<script setup  lang="ts">
import { ref } from 'vue'
import {getWebSocketInstance} from '@/utils/websocketExample'
const pingFormData = ref<any>([])
const pingLogContainerRef = ref<any>(null)
</script>

<style  lang="scss" scoped>
@import '@/styles/log_container.scss';
</style>
